package test.yzx.pproject.act2;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import test.yzx.pproject.R;
import test.yzx.pproject.SimpleRippleView;

public class RippleViewActivity extends AppCompatActivity{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.rp2);

        findViewById(R.id.view).setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                ((SimpleRippleView)v).startRipple(800);
            }
        });

    }

}
